package dotdashdot.bradz.trendsettr;

import java.sql.Timestamp;

import org.json.JSONObject;

import android.util.Log;

public class TestData {
	private static boolean use_server_data = true;
	
	public static void init_data(ClassTrendingContainer container, ClassNetworkHelper network){
		//container.reset_db();
		if(use_server_data){
			//network.get_all_from_network(container);
		}else{
			container.add_topic("People");
			if (container.get_topic("People") == null){
				Log.i("TestData","NULL");
			}
			ClassTopic temp_topic = container.get_topic("People");
			Log.i("TestData",temp_topic.get_name());
			Log.i("TestData",""+temp_topic.get_primary());
			Log.i("TestData",""+temp_topic.get_trend().size());
			//Log.i("TestData",temp_topic.get_db().toString());
			/*container.get_topic("People").add_trend("George Clooney", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("People").add_trend("Sarah Silverman", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("People").add_trend("Patrick Swayze", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("People").add_trend("Sandra Bullock", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("People").add_trend("Miley Cyrus", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.add_topic("Music");
			container.get_topic("Music").add_trend("Foo Fighters", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Music").add_trend("Eminem", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Music").add_trend("Radiohead", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Music").add_trend("Kendrick Lamar", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Music").add_trend("Mc Chris", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.add_topic("Movies");
			container.get_topic("Movies").add_trend("What About Bob", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Movies").add_trend("Groundhog Day", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Movies").add_trend("Ghostbusters", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Movies").add_trend("Fantastic Mr. Fox", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Movies").add_trend("Lost In Translation", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.add_topic("Sports");
			container.get_topic("Sports").add_trend("Bruins", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Sports").add_trend("Patriots", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Sports").add_trend("Red Sox", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Sports").add_trend("Celtics", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Sports").add_trend("Colts", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.add_topic("News");
			container.add_topic("Online");
			container.add_topic("Blogs");
			container.add_topic("History");
			container.get_topic("History").add_trend("George Washington", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("History").add_trend("Thomas Jefferson", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("History").add_trend("Albert Einstein", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("History").add_trend("Abraham Lincoln", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("History").add_trend("Barack Obama", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.add_topic("Science");
			container.get_topic("Science").add_trend("Ladybugs", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Science").add_trend("Comets", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Science").add_trend("Mercury", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Science").add_trend("Penecilin", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));
			container.get_topic("Science").add_trend("Mitosis", "http://imgur.com/a/cLSHV#8", "google.com",0,0,new Timestamp(0));*/
			//container.get_db().print_topics();
			//container.get_db().print_trends();
		}
	}
}
